package org.yanghaokun.product.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.yanghaokun.basic.domain.BaseDomain;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends BaseDomain {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime = new Date();
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime = new Date();
    private Long state = 0L;
    private BigDecimal costprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime = new Date();
    private Long salecount;
    private ProductDetail detail;

}
